<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增')" />
    <th:block th:include="include :: datetimepicker-css" />

</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-salary-add" th:object="${salary}">
            <input name="sId" th:field="*{sId}" type="hidden">
            <input name="sName" th:field="*{sName}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label" for="sMoney">下发金额：</label>
                <div class="col-sm-8">
                    <input name="sMoney" id="sMoney" th:field="*{sMoney}" class="form-control" type="text">
                </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/salary"
        $("#form-salary-add").validate({
            focusCleanup: true
        });
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/detail", $('#form-salary-add').serialize());
            }
        }

        $("input[name='sDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>